package com.tsunami.provider;

import android.net.Uri;
import android.provider.BaseColumns;

public final class TodoList {
	
	 public static final String AUTHORITY = "com.tsunami.provider.TodoList";
	 
	 private static final String SCHEME = "content://";

	 private TodoList(){}
	 
	 public static final class List implements BaseColumns {
		 
		 private List(){} 
		 
		 public static final String TABLE_NAME = "list";
		 
		 private static final String PATH_LIST = "/list";
		 private static final String PATH_LIST_ID = "/list/";
		 
		 public static final int LIST_ID_PATH_POSITION = 1;
		 
		 public static final Uri CONTENT_URI =  Uri.parse(SCHEME + AUTHORITY + PATH_LIST);
		 
		 public static final Uri CONTENT_ID_URI_BASE = Uri.parse(SCHEME + AUTHORITY + PATH_LIST_ID);
		 
		 public static final Uri CONTENT_ID_URI_PATTERN = Uri.parse(SCHEME + AUTHORITY + PATH_LIST_ID + "#");
		 
		 public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.tsunami.list";

	     public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.tsunami.list";
	     
	     public static final String DEFAULT_SORT_ORDER = _ID + " ASC";
	     
	     public static final String COLUMN_NAME_TITLE = "title";
	     
	     public static final String COLUMN_NAME_CREATED_DATE = "created_date";
	     
	     public static final String COLUMN_NAME_SOURCE = "source";
	     
	     public static final int SOURCE_USER = 0;
	     public static final int SOURCE_GOOGLE = 1;
	     
	     public static final String COLUMN_NAME_DISPLAY_ORDER = "display_order";

	 }
	 
	 public static final class Task implements BaseColumns {
		 
		 private Task(){}
		 
		 public static final String TABLE_NAME = "task";
		 
		 private static final String PATH_TASK = "/task";
		 private static final String PATH_TASK_ID = "/task/";
		 
		 public static final int TASK_ID_PATH_POSITION = 1;
		 
		 public static final Uri CONTENT_URI =  Uri.parse(SCHEME + AUTHORITY + PATH_TASK);
		 
		 public static final Uri CONTENT_ID_URI_BASE = Uri.parse(SCHEME + AUTHORITY + PATH_TASK_ID);
		 
		 public static final Uri CONTENT_ID_URI_PATTERN = Uri.parse(SCHEME + AUTHORITY + PATH_TASK_ID + "/#");
		 
		 public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.tsunami.task";

	     public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.tsunami.task";
	     
	     public static final String DEFAULT_SORT_ORDER = "display_order ASC";
	     
	     public static final String COLUMN_NAME_LIST_ID = "list_id";
	     
	     public static final String COLUMN_NAME_DESCRIPTION = "description";
	     
	     public static final String COLUMN_NAME_CREATED_DATE = "created_date";
	     
	     public static final String COLUMN_NAME_NOTES = "notes";
	     
	     public static final String COLUMN_NAME_DUE_DATE = "due_date";
	     
	     public static final String COLUMN_NAME_COMPLETED_DATE = "completed_date";
	     
	     public static final String COLUMN_NAME_DISPLAY_ORDER = "display_order";
	     
	 }
}
